package com.nbsaas.boot.product.rest.convert;

import com.nbsaas.boot.product.data.entity.ProductBrand;
import com.nbsaas.boot.product.api.domain.simple.ProductBrandSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商品品牌-列表对象转换器
*/

public class ProductBrandSimpleConvert implements Converter<ProductBrandSimple, ProductBrand> {




@Override
public ProductBrandSimple convert(ProductBrand source) {
    ProductBrandSimple result = new ProductBrandSimple();

                result.setEnglishName(source.getEnglishName());
                result.setImage(source.getImage());
                result.setNote(source.getNote());
                result.setWebsite(source.getWebsite());
                result.setCode(source.getCode());
                result.setSeoDescription(source.getSeoDescription());
                result.setDescription(source.getDescription());
                result.setSort(source.getSort());
                result.setSeoTitle(source.getSeoTitle());
                result.setSeoKeywords(source.getSeoKeywords());
                result.setAddDate(source.getAddDate());
                result.setEnabled(source.getEnabled());
                result.setRecommended(source.getRecommended());
                result.setName(source.getName());
                result.setLogo(source.getLogo());
                result.setId(source.getId());
                result.setLastDate(source.getLastDate());


    return result;
}

}